package net.nandleon.AgenceVoyage.client.event.loginEvent;

import net.nandleon.AgenceVoyage.shared.Panier;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.GwtEvent.Type;

public class LoginEvent extends GwtEvent<LoginEventHandler> {
	
	public static final GwtEvent.Type TYPE =
		      new GwtEvent.Type();

	private String content;
	
	private Boolean isRoot;

	private Panier monPanier;
	
	public LoginEvent() {
		isRoot=false;
	}
	

	public String getContent() {
		return content;
	}




	public void setContent(String content) {
		this.content = content;
	}




	public Boolean getIsRoot() {
		return isRoot;
	}




	public void setIsRoot(Boolean isRoot) {
		this.isRoot = isRoot;
	}




	public Panier getMonPanier() {
		return monPanier;
	}


	public void setMonPanier(Panier monPanier) {
		this.monPanier = monPanier;
	}


	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<LoginEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(LoginEventHandler handler) {
		handler.onLoginConnect(this);
		
	}

	public static Type<LoginEventHandler> getType() {
		return TYPE;
	}



	   
}